var express = require('express');
var router = express.Router();

var index = require('../controllers/index')
var web_monitor = require('../controllers/web_monitor')
var monitor = require('../controllers/monitor')


/* GET home page. */
router.get('/', index.index);
router.get('/monitor', monitor.add_view);
router.post('/monitor', monitor.add_monitor);
router.get('/monitor/:id/', monitor.edit_monitor);
router.get('/monitor/del/:id/', monitor.del_monitor);
router.get('/m_website/:type/', web_monitor.m_web);

module.exports = router;
